﻿#region File and License Information
/*
<File>
	<License>
		Copyright © 2009 - 2017, Daniel Vaughan. All rights reserved.
		This file is part of Calcium (http://calciumsdk.net), 
		which is released under the MIT License.
		See file /Documentation/License.txt for details.
	</License>
	<CreationDate>2010-08-19 17:01:19Z</CreationDate>
</File>
*/
#endregion

using System.ComponentModel;

namespace Outcoder.UI.Xaml
{
	/* TODO: [DV] Comment. */
	public class BindableChangeNotifier<T> : INotifyPropertyChanged
	{
		public event PropertyChangedEventHandler PropertyChanged;

		static T instance;

		public T Instance => instance;

		public BindableChangeNotifier(T observableObject)
		{
			instance = observableObject;
		}

		public void RaisePropertyChanged()
		{
			PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Instance)));
		}
	}
}
